package com.aaa.log;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.Log;

/**
 * @PackageName: com.wjw.log
 * @ClassName: StdOutImpl
 * @Description:
 * @author: 王嘉威
 * @Date: 2021/1/13 9:34
 */
@Slf4j
public class StdOutImpl implements Log {

    public StdOutImpl(String clazz) {
    }

    public boolean isDebugEnabled() {
        return true;
    }

    public boolean isTraceEnabled() {
        return true;
    }

    public void error(String s, Throwable e) {
        log.info(s);
        e.printStackTrace(System.err);
    }

    public void error(String s) {
        log.info(s);
    }

    public void debug(String s) {
        log.info(s);
    }

    public void trace(String s) {
        log.info(s);
    }

    public void warn(String s) {
        log.info(s);
    }
}
